$(function(){
    var idAmostra = $('#idAmostra').val();
    var inicial = $('#inicial').val();
    
    
	jQuery("#gridConsultaremessa").jqGrid({
		url:"extranet/Consulta/remessa/idAmostra/"+idAmostra+'/inicial/'+inicial,//Url da requisacao ajax p/retornar os dados
		datatype: "json", //Tipo de dado retornado pela requisicao
		colNames:['Identifica&ccedil&atildeo', 'Data', 'Exame',  ' Resposta', 'Valor 1', 'Valor 2', 'Metodologia','Kit Sorologia'], 
		colModel:[
	   		{name:'idRemessa',index:'idRemessa', width:90,align:"center", search: false},
	   		{name:'dataRemessa',index:'dataRemessa', width:80, align:"center", search: false, formatter:'date', datefmt:'d/m/Y'},
	   		{name:'resultadoexame', index:'resultadoexame', width:200, align:"center",search: false},
	   		{name:'resposta',index:'resposta', width:90, align:"center", search: false},
	   		{name:'valor1',index:'valor1', width:60, align:"center", search: false},	
	   		{name:'valor2',index:'valor2', width:60, align:"cente", search: false},
	   		{name: 'metodologia',index:'metodologia', width:120,align:"center", search: false},
	   		{name: 'KitSorologia', index:'KitSorologia', width:100, align:"center", sortable:false, search: false}
	   	],
   		//rowNum:20, //qdte de registros listados inicialmente:
   		//rowList:[10,20,30],
   		//shrinkToFit: false, 
   		scroll:true,
                heigth: '300%',
   		width: 1000,
   		pager: '#navConsultaremessa',
   		sortname: 'dataRemessa',
   		sortorder: "ASC", //tipo de ordena��o
   		multiselect: false, //creckbox select
   		viewrecords: true,
   		loadonce:true,
   		ignoreCase:true,
   		caption:"Amostra: "+idAmostra,
   		grouping:false,
		
		//footerrow: true,
		userdataOnFooter: true
	});
});
jQuery("#gridConsultaremessa").jqGrid('navGrid','#gridConsultaremessa',{add:false,edit:false,del:false});